package com.learning.mybatis.spring.xml.mapper;

import com.learning.mybatis.spring.xml.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * ClassName: IUserMapping
 * Description:
 * Date: 2020/7/22 9:56 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Repository
public interface IUserMapper {
    /**
     * 新增
     *
     * @param user
     * @return
     */
    int add(User user);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int delete(int id);

    /**
     * 更新
     *
     * @param user
     * @return
     */
    int update(User user);

    /**
     * 查询
     *
     * @param id
     * @return
     */
    User select(@Param("id") int id);

}
